package service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import dao.CommentMapper;
import dao.EssayAndUserAndCommentDao;
import pojo.EssayAndUserAndComment;

@Service
public class EssayAndUserAndCommentServiceImpl implements EssayAndUserAndCommentServiceI {

	@Autowired
	private EssayAndUserAndCommentDao eAndCommentDao;
	@Autowired
	private CommentMapper cMapper;
	@Override
	public List<EssayAndUserAndComment> FindAllCommentByEssayId(Integer essayId) {
		// TODO Auto-generated method stub
		return eAndCommentDao.selectallcomment(essayId);
	}


}
